package com.xuecheng.ucenter.feignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "checkcode" ,fallbackFactory = CheckCodeClientFactory.class)
@RequestMapping("/checkcode")
public interface CheckCodeServiceClient {
    @PostMapping(value = "/verify")
    Boolean verify(@RequestParam("key") String key,@RequestParam("code") String code);
}
